<section class="title">
<?php if ($this->method == 'create'): ?>
	<?php $readonly = '';?>
	<h4><?php echo lang('escort_product_add_title'); ?></h4>
<?php else: ?>
	<?php $readonly = 'readonly="readonly"';?>
	<h4><?php echo sprintf(lang('escort_product_edit_title'), $product->product_ref); ?></h4>
<?php endif; ?>
</section>

<section class="item">
	
<?php echo form_open(uri_string(), 'class="crud"'); ?>
<div class="form_inputs" id="news-form">

	<fieldset>
	
		<ul>
			<li class="odd">
				<label for="product_ref"><?php echo lang('escort_product_ref_label'); ?></label>
				<div class="input">					
					<?php echo form_input('product_ref',  $product->product_ref, 'id="product_ref"') ?>
				</div>
			</li>
			<li class="even">
				<label for="price"><?php echo lang('escort_product_price_label'); ?> <span>*</span></label>
				<div class="input">
				<?php echo form_input('price',$product->price, 'id="price" '); ?>
				</div>				
			</li>
			<li class="odd">
				<label for="package_ids"><?php echo lang('escort_product_automatic_label'); ?></label>
				<div class="input multi-checkbox">
					<?php echo multi_checkbox('package_ids[]',$packageOptionList, explode(",", $product->package_ids)); ?>
				</div>
			</li>
			<li class="odd">
				<label for="description"><?php echo lang('escort_product_description_label'); ?></label>
				<div class="input">
					<?php echo form_textarea('description', $product->description)?>
				</div>
			</li>
		</ul>
	</fieldset>
</div>
<div class="buttons float-right padding-top">
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'save_exit', 'cancel'))); ?>
</div>
<?php echo form_close(); ?>
</section>